package com.ruoyi.teaching.mapper;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.ruoyi.teaching.bo.InterviewMasteryDegreeListBo;
import com.ruoyi.teaching.bo.QueryInterviewMasteryDegreeBo;
import com.ruoyi.teaching.domain.HighInterview;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 高频面试题Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-02
 */
public interface HighInterviewMapper  extends BaseMapper<HighInterview>
{
    /**
     * 查询高频面试题
     *
     * @param id 高频面试题主键
     * @return 高频面试题
     */
    public HighInterview selectHighInterviewById(Long id);

    /**
     * 查询高频面试题列表
     *
     * @param highInterview 高频面试题
     * @return 高频面试题集合
     */
    public List<HighInterview> selectHighInterviewList(HighInterview highInterview);

    /**
     * 新增高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int insertHighInterview(HighInterview highInterview);

    /**
     * 修改高频面试题
     *
     * @param highInterview 高频面试题
     * @return 结果
     */
    public int updateHighInterview(HighInterview highInterview);

    /**
     * 删除高频面试题
     *
     * @param id 高频面试题主键
     * @return 结果
     */
    public int deleteHighInterviewById(Long id);

    /**
     * 批量删除高频面试题
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHighInterviewByIds(Long[] ids);

    List<InterviewMasteryDegreeListBo> selectInterviewMasteryDegree(QueryInterviewMasteryDegreeBo queryInterviewMasteryDegreeBo);

    List<HighInterview> selectHighInterviewByCourseDesignId(@Param("courseDesignId") Long courseDesignId);

    List<HighInterview> selectHighInterviewListByKeywords(@Param("keywords") Set<String> keywords);

}
